const gameWidth = gameStyleData.width;
const maskDom = document.querySelector(".mask");
const maskTipDom = maskDom.querySelector(".mask-tip");

class Mask extends Rectangle {
  constructor() {
    super(gameWidth, gameHeight, 0, 0, 0, 0, maskDom);
  }
  showMask() {
    this.dom.style.opacity = 1;
  }
  hideMask() {
    this.dom.style.opacity = 0;
  }
  changeTipText(info) {
    maskTipDom.textContent = info;
  }
}